// 接口请求

import axios from 'axios'

export const getMenu = (params) => {
    return axios.request({
        // 传入相关配置，定义接口请求方法
        url: '/permission/getMenu',
        method:'post',
        data: params
    })
}

export const getData = () =>{
    return axios.request({
        url:'/home/getData',
        method: 'get'
    })
}

export const getUser = (params) =>{
    return axios.request({
        url:'/user/getUser',
        method: 'get',
        params
    })
}

